home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / mac / Code / Chapter08 / rotatemoveavatar.S3D < prev    next >
Text File  |  2000-06-30  |  10KB  |  452 lines

  1. Background {
  2.     color 0.8353 1 0.9569
  3. }
  4. DEF groundplane Transform {
  5.     translation 0 0 0
  6.     children [
  7.         Shape {
  8.             appearance [
  9.                 MultiAppearance {
  10.                     material Material {
  11.                         diffuseColor 0.6667 0.9412 0.1922
  12.                         specularColor 0.045 0.045 0.045
  13.                         shininess 0.25
  14.                         transparency 0
  15.                     }
  16.                 }
  17.             ]
  18.             geometry MultiMesh {
  19.                 defaultFlatShaded FALSE
  20.                 coord DEF groundplane-COORD Coordinate {
  21.                     point [
  22.                         231 0 -231 -231 0 -231 -231 0 231 231 0 231
  23.                     ]
  24.                 }
  25.                 coordIndex [
  26.                     2 3 0 -1 1 2 0 -1
  27.                 ]
  28.                 textureMappings [
  29.                 ]
  30.             }
  31.         }
  32.     ]
  33. }
  34. DEF vehicle Transform {
  35.     translation 0 5.841 161.5
  36.     children [
  37.         Shape {
  38.             appearance [
  39.                 MultiAppearance {
  40.                     material Material {
  41.                         diffuseColor 0.9882 0.3569 0.4902
  42.                         specularColor 0.045 0.045 0.045
  43.                         shininess 0.25
  44.                         transparency 0
  45.                     }
  46.                 }
  47.             ]
  48.             geometry MultiMesh {
  49.                 coord DEF vehicle-COORD Coordinate {
  50.                     point [
  51.                         -12.53 0 19.76 12.53 0 19.76 0 0 -19.76 -12.53 11.94 19.76 12.53 11.94 19.76 0 11.94 -19.76
  52.                     ]
  53.                 }
  54.                 coordIndex [
  55.                     2 1 0 -1 3 4 5 -1 0 1 4 -1 4 3 0 -1 1 2 5 -1 5 4 1 -1 2 0 3 -1 3 5 2 -1
  56.                 ]
  57.                 smoothingIndex [
  58.                     2 -1 3 -1 4 -1 4 -1 5 -1 5 -1 7 -1 7 -1
  59.                 ]
  60.                 appearanceIndex [
  61.                     1 0 4 4 3 3 2 2
  62.                 ]
  63.                 textureMappings [
  64.                 ]
  65.             }
  66.         }
  67.         DEF Camera01 Viewpoint{
  68.             position -0.9639 27.98 108.8
  69.             orientation 0 0 0 0
  70.             fieldOfView 0.5745
  71.             description "Camera01"
  72.         }
  73.     ]
  74. }
  75. DEF FDirect01-LIGHT DirectionalLight {
  76.     affectedGroups "#Root"
  77.     intensity 1
  78.     color 1 1 1
  79.     direction 0 -0.9239 -0.3827
  80.     on TRUE
  81. }
  82. DEF Box01 Transform {
  83.     translation -149.3 0 160.6
  84.     children [
  85.         Shape {
  86.             appearance [
  87.                 MultiAppearance {
  88.                     material Material {
  89.                         diffuseColor 0.1922 0.6078 0.4471
  90.                         specularColor 0.045 0.045 0.045
  91.                         shininess 0.25
  92.                         transparency 0
  93.                     }
  94.                 }
  95.             ]
  96.             geometry MultiMesh {
  97.                 coord DEF Box01-COORD Coordinate {
  98.                     point [
  99.                         -13.53 0 10.94 13.53 0 10.94 -13.53 0 -10.94 13.53 0 -10.94 -13.53 24.76 10.94 13.53 24.76 10.94
  100.                         -13.53 24.76 -10.94 13.53 24.76 -10.94
  101.                     ]
  102.                 }
  103.                 coordIndex [
  104.                     0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
  105.                     2 0 4 -1 4 6 2 -1
  106.                 ]
  107.                 smoothingIndex [
  108.                     2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
  109.                 ]
  110.                 appearanceIndex [
  111.                     1 1 0 0 4 4 3 3 5 5 2 2
  112.                 ]
  113.                 textureMappings [
  114.                 ]
  115.             }
  116.         }
  117.     ]
  118. }
  119. DEF Box02 Transform {
  120.     translation -149.3 0 86.84
  121.     children [
  122.         Shape {
  123.             appearance [
  124.                 MultiAppearance {
  125.                     material Material {
  126.                         diffuseColor 0.3882 0.5294 0.1922
  127.                         specularColor 0.045 0.045 0.045
  128.                         shininess 0.25
  129.                         transparency 0
  130.                     }
  131.                 }
  132.             ]
  133.             geometry MultiMesh {
  134.                 coord DEF Box02-COORD Coordinate {
  135.                     point [
  136.                         -13.53 0 10.94 13.53 0 10.94 -13.53 0 -10.94 13.53 0 -10.94 -13.53 24.76 10.94 13.53 24.76 10.94
  137.                         -13.53 24.76 -10.94 13.53 24.76 -10.94
  138.                     ]
  139.                 }
  140.                 coordIndex [
  141.                     0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
  142.                     2 0 4 -1 4 6 2 -1
  143.                 ]
  144.                 smoothingIndex [
  145.                     2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
  146.                 ]
  147.                 appearanceIndex [
  148.                     1 1 0 0 4 4 3 3 5 5 2 2
  149.                 ]
  150.                 textureMappings [
  151.                 ]
  152.             }
  153.         }
  154.     ]
  155. }
  156. DEF Box03 Transform {
  157.     translation -149.3 0 -2.386
  158.     children [
  159.         Shape {
  160.             appearance [
  161.                 MultiAppearance {
  162.                     material Material {
  163.                         diffuseColor 0.1922 0.6078 0.4471
  164.                         specularColor 0.045 0.045 0.045
  165.                         shininess 0.25
  166.                         transparency 0
  167.                     }
  168.                 }
  169.             ]
  170.             geometry MultiMesh {
  171.                 coord DEF Box03-COORD Coordinate {
  172.                     point [
  173.                         -13.53 0 10.94 13.53 0 10.94 -13.53 0 -10.94 13.53 0 -10.94 -13.53 24.76 10.94 13.53 24.76 10.94
  174.                         -13.53 24.76 -10.94 13.53 24.76 -10.94
  175.                     ]
  176.                 }
  177.                 coordIndex [
  178.                     0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
  179.                     2 0 4 -1 4 6 2 -1
  180.                 ]
  181.                 smoothingIndex [
  182.                     2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
  183.                 ]
  184.                 appearanceIndex [
  185.                     1 1 0 0 4 4 3 3 5 5 2 2
  186.                 ]
  187.                 textureMappings [
  188.                 ]
  189.             }
  190.         }
  191.     ]
  192. }
  193. DEF Box04 Transform {
  194.     translation -149.3 0 -83.91
  195.     children [
  196.         Shape {
  197.             appearance [
  198.                 MultiAppearance {
  199.                     material Material {
  200.                         diffuseColor 0.3882 0.5294 0.1922
  201.                         specularColor 0.045 0.045 0.045
  202.                         shininess 0.25
  203.                         transparency 0
  204.                     }
  205.                 }
  206.             ]
  207.             geometry MultiMesh {
  208.                 coord DEF Box04-COORD Coordinate {
  209.                     point [
  210.                         -13.53 0 10.94 13.53 0 10.94 -13.53 0 -10.94 13.53 0 -10.94 -13.53 24.76 10.94 13.53 24.76 10.94
  211.                         -13.53 24.76 -10.94 13.53 24.76 -10.94
  212.                     ]
  213.                 }
  214.                 coordIndex [
  215.                     0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
  216.                     2 0 4 -1 4 6 2 -1
  217.                 ]
  218.                 smoothingIndex [
  219.                     2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
  220.                 ]
  221.                 appearanceIndex [
  222.                     1 1 0 0 4 4 3 3 5 5 2 2
  223.                 ]
  224.                 textureMappings [
  225.                 ]
  226.             }
  227.         }
  228.     ]
  229. }
  230. DEF Box05 Transform {
  231.     translation -149.3 0 -160.7
  232.     children [
  233.         Shape {
  234.             appearance [
  235.                 MultiAppearance {
  236.                     material Material {
  237.                         diffuseColor 0.1922 0.6078 0.4471
  238.                         specularColor 0.045 0.045 0.045
  239.                         shininess 0.25
  240.                         transparency 0
  241.                     }
  242.                 }
  243.             ]
  244.             geometry MultiMesh {
  245.                 coord DEF Box05-COORD Coordinate {
  246.                     point [
  247.                         -13.53 0 10.94 13.53 0 10.94 -13.53 0 -10.94 13.53 0 -10.94 -13.53 24.76 10.94 13.53 24.76 10.94
  248.                         -13.53 24.76 -10.94 13.53 24.76 -10.94
  249.                     ]
  250.                 }
  251.                 coordIndex [
  252.                     0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
  253.                     2 0 4 -1 4 6 2 -1
  254.                 ]
  255.                 smoothingIndex [
  256.                     2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
  257.                 ]
  258.                 appearanceIndex [
  259.                     1 1 0 0 4 4 3 3 5 5 2 2
  260.                 ]
  261.                 textureMappings [
  262.                 ]
  263.             }
  264.         }
  265.     ]
  266. }
  267. DEF Box06 Transform {
  268.     translation 155.6 0 86.84
  269.     children [
  270.         Shape {
  271.             appearance [
  272.                 MultiAppearance {
  273.                     material Material {
  274.                         diffuseColor 0.1922 0.6078 0.4471
  275.                         specularColor 0.045 0.045 0.045
  276.                         shininess 0.25
  277.                         transparency 0
  278.                     }
  279.                 }
  280.             ]
  281.             geometry MultiMesh {
  282.                 coord DEF Box06-COORD Coordinate {
  283.                     point [
  284.                         -13.53 0 10.94 13.53 0 10.94 -13.53 0 -10.94 13.53 0 -10.94 -13.53 24.76 10.94 13.53 24.76 10.94
  285.                         -13.53 24.76 -10.94 13.53 24.76 -10.94
  286.                     ]
  287.                 }
  288.                 coordIndex [
  289.                     0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
  290.                     2 0 4 -1 4 6 2 -1
  291.                 ]
  292.                 smoothingIndex [
  293.                     2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
  294.                 ]
  295.                 appearanceIndex [
  296.                     1 1 0 0 4 4 3 3 5 5 2 2
  297.                 ]
  298.                 textureMappings [
  299.                 ]
  300.             }
  301.         }
  302.     ]
  303. }
  304. DEF Box07 Transform {
  305.     translation 155.6 0 -2.386
  306.     children [
  307.         Shape {
  308.             appearance [
  309.                 MultiAppearance {
  310.                     material Material {
  311.                         diffuseColor 0.3882 0.5294 0.1922
  312.                         specularColor 0.045 0.045 0.045
  313.                         shininess 0.25
  314.                         transparency 0
  315.                     }
  316.                 }
  317.             ]
  318.             geometry MultiMesh {
  319.                 coord DEF Box07-COORD Coordinate {
  320.                     point [
  321.                         -13.53 0 10.94 13.53 0 10.94 -13.53 0 -10.94 13.53 0 -10.94 -13.53 24.76 10.94 13.53 24.76 10.94
  322.                         -13.53 24.76 -10.94 13.53 24.76 -10.94
  323.                     ]
  324.                 }
  325.                 coordIndex [
  326.                     0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
  327.                     2 0 4 -1 4 6 2 -1
  328.                 ]
  329.                 smoothingIndex [
  330.                     2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
  331.                 ]
  332.                 appearanceIndex [
  333.                     1 1 0 0 4 4 3 3 5 5 2 2
  334.                 ]
  335.                 textureMappings [
  336.                 ]
  337.             }
  338.         }
  339.     ]
  340. }
  341. DEF Box08 Transform {
  342.     translation 155.6 0 -83.91
  343.     children [
  344.         Shape {
  345.             appearance [
  346.                 MultiAppearance {
  347.                     material Material {
  348.                         diffuseColor 0.1922 0.6078 0.4471
  349.                         specularColor 0.045 0.045 0.045
  350.                         shininess 0.25
  351.                         transparency 0
  352.                     }
  353.                 }
  354.             ]
  355.             geometry MultiMesh {
  356.                 coord DEF Box08-COORD Coordinate {
  357.                     point [
  358.                         -13.53 0 10.94 13.53 0 10.94 -13.53 0 -10.94 13.53 0 -10.94 -13.53 24.76 10.94 13.53 24.76 10.94
  359.                         -13.53 24.76 -10.94 13.53 24.76 -10.94
  360.                     ]
  361.                 }
  362.                 coordIndex [
  363.                     0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
  364.                     2 0 4 -1 4 6 2 -1
  365.                 ]
  366.                 smoothingIndex [
  367.                     2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
  368.                 ]
  369.                 appearanceIndex [
  370.                     1 1 0 0 4 4 3 3 5 5 2 2
  371.                 ]
  372.                 textureMappings [
  373.                 ]
  374.             }
  375.         }
  376.     ]
  377. }
  378. DEF Box09 Transform {
  379.     translation 155.6 0 -160.7
  380.     children [
  381.         Shape {
  382.             appearance [
  383.                 MultiAppearance {
  384.                     material Material {
  385.                         diffuseColor 0.3882 0.5294 0.1922
  386.                         specularColor 0.045 0.045 0.045
  387.                         shininess 0.25
  388.                         transparency 0
  389.                     }
  390.                 }
  391.             ]
  392.             geometry MultiMesh {
  393.                 coord DEF Box09-COORD Coordinate {
  394.                     point [
  395.                         -13.53 0 10.94 13.53 0 10.94 -13.53 0 -10.94 13.53 0 -10.94 -13.53 24.76 10.94 13.53 24.76 10.94
  396.                         -13.53 24.76 -10.94 13.53 24.76 -10.94
  397.                     ]
  398.                 }
  399.                 coordIndex [
  400.                     0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
  401.                     2 0 4 -1 4 6 2 -1
  402.                 ]
  403.                 smoothingIndex [
  404.                     2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
  405.                 ]
  406.                 appearanceIndex [
  407.                     1 1 0 0 4 4 3 3 5 5 2 2
  408.                 ]
  409.                 textureMappings [
  410.                 ]
  411.             }
  412.         }
  413.     ]
  414. }
  415. DEF Box10 Transform {
  416.     translation 155.6 0 160.6
  417.     children [
  418.         Shape {
  419.             appearance [
  420.                 MultiAppearance {
  421.                     material Material {
  422.                         diffuseColor 0.3882 0.5294 0.1922
  423.                         specularColor 0.045 0.045 0.045
  424.                         shininess 0.25
  425.                         transparency 0
  426.                     }
  427.                 }
  428.             ]
  429.             geometry MultiMesh {
  430.                 coord DEF Box10-COORD Coordinate {
  431.                     point [
  432.                         -13.53 0 10.94 13.53 0 10.94 -13.53 0 -10.94 13.53 0 -10.94 -13.53 24.76 10.94 13.53 24.76 10.94
  433.                         -13.53 24.76 -10.94 13.53 24.76 -10.94
  434.                     ]
  435.                 }
  436.                 coordIndex [
  437.                     0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
  438.                     2 0 4 -1 4 6 2 -1
  439.                 ]
  440.                 smoothingIndex [
  441.                     2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
  442.                 ]
  443.                 appearanceIndex [
  444.                     1 1 0 0 4 4 3 3 5 5 2 2
  445.                 ]
  446.                 textureMappings [
  447.                 ]
  448.             }
  449.         }
  450.     ]
  451. }
  452.